package com.clwl.supervise.superviseapp.entity.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "SYS_AREA")
public class SysArea implements Serializable {
    @TableId(value = "ID", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @TableField(value = "PARENT_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

    @TableField(value = "AREA_LEVEL")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long areaLevel;

    @TableField(value = "NAME")
    private String name;

    @TableField(value = "WHOLE_NAME")
    private String wholeName;

    @TableField(value = "LON")
    private String lon;

    @TableField(value = "LAT")
    private String lat;

    @TableField(value = "CITY_CODE")
    private String cityCode;

    @TableField(value = "ZIP_CODE")
    private String zipCode;

    @TableField(value = "AREA_CODE")
    private String areaCode;

    @TableField(value = "PIN_YIN")
    private String pinYin;

    @TableField(value = "SIMPLE_PY")
    private String simplePy;

    @TableField(value = "PER_PIN_YIN")
    private String perPinYin;

    private static final long serialVersionUID = 1L;
}
